import request from '@/utils/request'
import {delAllList} from "@/api/application";

export function createAdmin(data) {
  return request({
    url: '/admin/index/createAdmin',
    method: 'post',
    data
  })
}
export function updateAdmin(data) {
  return request({
    url: '/admin/index/updateAdmin',
    method: 'post',
    data
  })
}

export function getAdmin(params) {
    return request({
      url: '/admin/index/getAdmin',
      method: 'get',
      params
    })
  }

  export function delAdmin(params) {
    return request({
      url: '/admin/index/delAdmin',
      method: 'get',
      params
    })
  }

  export function updateAdminStatus(params) {
    return request({
      url: '/admin/index/updateAdminStatus',
      method: 'get',
      params
    })
  }

export function getAuthGroup(params) {
  return request({
    url: '/admin/index/getAuthGroup',
    method: 'get',
    params
  })
}




